package models

type CreatUserfunc func(id int, name string) interface{}
type User struct {
	Id   int
	Name string
}

func NewUser() CreatUserfunc {
	return func(id int, name string) interface{} {
		return &User{
			Id: id, Name: name,
		}
	}
}

type Admin struct {
	Id   int
	Name string
}

func NewAdmin() CreatUserfunc {
	return func(id int, name string) interface{} {
		return &Admin{
			Id:   id,
			Name: name,
		}
	}

}
